Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

217
Views
No "exports" main defined in Node module's package.json

I just installed the zx NPM package.

I installed it locally and imported it:

import { $ } from 'zx'

(async () => {
    await $`mkdir test`
})()

But I'm getting this error:

No "exports" main defined in /home/alex/node/check-image-size/node_modules/zx/package.json

Note: I'm using Node 16.14.

What does this kind of error mean, and how can I fix it?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Dou have the "main" field in your package.json ?

https://docs.npmjs.com/cli/v7/configuring-npm/package-json#main

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!